﻿@model IEnumerable<Domain.Model.Entity.OZUser>

@{
    ViewBag.Title = "UserList2";

}

<h2>UserList2</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <table class="table">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.UserID)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserCode)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserLoginName)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserRealName)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserPassword)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserEmail)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserMobile)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserCreateDate)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.UserStatus)
                        </th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>

                    @for (int i = 0; i < Model.ToList<Domain.Model.Entity.OZUser>().Count; i++)
                    {

                    }
                    @foreach (var item in Model)
                    {
                        <tr class="error">
                            <td>
                                @Html.DisplayFor(modelItem => item.UserID)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserCode)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserLoginName)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserRealName)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserPassword)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserEmail)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserMobile)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserCreateDate)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.UserStatus)
                            </td>
                            <td>
                                @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
                                @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
                                @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
                            </td>
                        </tr>
                    }
                </tbody>

            </table>
        </div>
    </div>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <table class="table">
                <thead>
                    <tr>
                        <th>编号
                        </th>
                        <th>产品
                        </th>
                        <th>交付时间
                        </th>
                        <th>状态
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1
                        </td>
                        <td>TB - Monthly
                        </td>
                        <td>01/04/2012
                        </td>
                        <td>Default
                        </td>
                    </tr>
                    <tr class="success">
                        <td>1
                        </td>
                        <td>TB - Monthly
                        </td>
                        <td>01/04/2012
                        </td>
                        <td>Approved
                        </td>
                    </tr>
                    <tr class="error">
                        <td>2
                        </td>
                        <td>TB - Monthly
                        </td>
                        <td>02/04/2012
                        </td>
                        <td>Declined
                        </td>
                    </tr>
                    <tr class="warning">
                        <td>3
                        </td>
                        <td>TB - Monthly
                        </td>
                        <td>03/04/2012
                        </td>
                        <td>Pending
                        </td>
                    </tr>
                    <tr class="info">
                        <td>4
                        </td>
                        <td>TB - Monthly
                        </td>
                        <td>04/04/2012
                        </td>
                        <td>Call in to confirm
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
@Scripts.Render("~/bundles/jquery.pin");

@{
    foreach (var item in ViewBag.listUserDetail)
    {
    @: @item.DetailID  ,lasdjfalsdjf @item.DetailAge<br />
    }
}